﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public static class MeritsSearch
    {
        public static ILookup<int, Account> Search(List<Merit> searches)
        {
            return Model.GetContext().AccountSets.ToLookup(x => x.CV.Merit.Intersect(searches).Count());
        }
    }
}
